﻿using System.Collections.Generic;

namespace MarvinsArena.Core
{
	public class TextureEqualityComparer : IEqualityComparer<TypeWorldObjects>
	{
		private static TextureEqualityComparer defaultInstance;
		public static TextureEqualityComparer Default
		{
			get
			{
				if (defaultInstance == null)
					defaultInstance = new TextureEqualityComparer();
				return defaultInstance;
			}
		}

		public bool Equals(TypeWorldObjects x, TypeWorldObjects y)
		{
			return x == y;
		}

		public int GetHashCode(TypeWorldObjects obj)
		{
			return (int)obj;
		}
	}

	public enum TypeWorldObjects
	{
		Robot,
       	Missile,
		Bullet,
		Wall
	} 
}
